package com.haoxi.gateway.runner;

import java.util.Date;

public interface IRun extends Runnable {
    //get threader object create time
    public Date getCreateTime();
    //get threader object last run time
    public Date getLastRunTime();
    //get threader object run interval time
    public long getSleepTime();
    //set threader object run interval time
    public void setSleepTime(long sleepTime);
    //get threader object is running
    public boolean isRunning();
    //set threader object is running or not
    public void setStop();
    
    public int getStatus();
    
    public String getName();
    public void setName(String sName);
    
    //
    public static final int RUNNER_READY = 2;
    
    public static final int RUNNER_RUNNING = 4;
    
    public static final int RUNNER_WAITING = 8;
    
    public static final int RUNNER_DEAD = 16;
}
